// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   MicroFormatter.java

package org.quickserver.util.logging;

import java.util.logging.*;

public class MicroFormatter extends Formatter
{

    public MicroFormatter()
    {
    }

    public String format(LogRecord record)
    {
        StringBuilder sb = new StringBuilder();
        sb.append(record.getLevel().getLocalizedName());
        sb.append(" : ");
        sb.append(formatMessage(record));
        if(record.getThrown() != null)
        {
            sb.append(lineSeparator);
            sb.append("[Exception: ");
            sb.append(record.getThrown().toString());
            sb.append(']');
        }
        sb.append(lineSeparator);
        return sb.toString();
    }

    private final String lineSeparator = System.getProperty("line.separator");
}
